package com.community.contorller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseController;
import com.community.dto.PeopleDTO;
import com.community.po.PeoplePO;
import com.community.service.PeopleService;
import com.lening.common.web.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ToDo:
 * @Author：高尚磊
 * @date: 2024/6/4 16:13
 */
@Slf4j
@RestController
@RequestMapping("people")
public class PeopleController extends BaseController<PeoplePO, PeopleDTO, PeopleService> {
//    @Autowired(required = false)
//    private PeopleService peopleService;
//    @GetMapping("getAll")
//    public Result<?> getPeopleAll(PeopleDTO peopleDTO){
//        Page<PeopleDTO> page = peopleService.getPeopleAll(peopleDTO);
//        return Result.ok(page);
//    }
//    @GetMapping("getId/{id}")
//    public Result<?> getRecordId(@PathVariable("id") Long id){
//        PeoplePO list = peopleService.getRecordId(id);
//        return Result.ok(list);
//    }
}
